/* BASE - Base Variable file along with starting point Mixins and Placeholders.
========================================================================== */

@import './base/config';
@import './base/variables';
@import './base/mixins';
@import './base/utils';
@import './base/animate.min.css';

/* MODULES - Re-usable site elements.
========================================================================== */

@import './modules/searchbox';
@import './modules/navbar';
@import './modules/navlink';
@import './modules/navlinks';
@import './modules/page';
@import './modules/sidebar';
@import './modules/dropdown';
@import './modules/code';
@import './modules/home';

/** UTILS - Utils
========================================================================== */

// @import './palette';
* {
    margin: 0;
    padding: 0;
}

html,
body {
    padding: 0;
    margin: 0;
    // font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    font-family: PingFang SC, Verdana, Helvetica Neue, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    &:hover,
    &:active {
        color: $color-primary;
    }
}

*::-webkit-scrollbar {
    width: 4px;
}

*::selection {
    background-color: $color-primary;
    color: $color-white;
}

ul,
ul>li {
    text-decoration: none;
    list-style-type: none;
}

#app {
    transition: transform .5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.sidebar-mask {
    position: fixed;
    z-index: 9;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
}

.theme-container {
    padding: 0;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    header {
        padding: 0;
        margin: 0;
        display: block;
        box-sizing: border-box;
        width: 100%;
        height: $navbar-height;
        padding-left: 1rem;
        padding-right: 1rem;
        color: $font-color;
        background-color: $navbar-background-color;
        box-shadow: 0 4px 8px 0 rgba(7, 17, 27, .1);
        border-bottom: 1px solid $border-color;
        position: fixed;
        top: 0;
        z-index: 10;
    }
    main {
        background: #ffffff;
        padding-top: $navbar-height + 36px;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        .note-sidebar {
            background-color: $color-white;
            width: $sidebar-width;
            box-sizing: border-box;
            font-size: 15px;
            border-right: 1px solid $border-color;
            position: fixed;
            z-index: 8;
            margin: 0;
            top: $navbar-height + 20px;
            left: 0;
            bottom: 0;
            transition-duration: 5s;
            transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
            will-change: transform;
            transition-property: transform, visibility, width;
            overflow-y: auto;
            overflow: -moz-scrollbars-none;
            &::-webkit-scrollbar,
            &::-o-scrollbar {
                display: none;
            }
        }
        .note-page {
            margin: 0;
            padding: 0;
            flex: 1;
            padding-top: 36px;
            padding-bottom: 36px;
            margin: 0 auto;
        }
    }
    &.sidebar-open {
        .sidebar-mask {
            display: block;
        }
    }
    // &.no-sidebar {
    //     display: none;
    // }
}